SWFC=haxe
MAIN=Main
SWFV=10
SWFH=640:480:30
SWFO=Game.swf
ASTP=assets
SLIB=${ASTP}/library.swf
FLXP=/home/eduardo/Projects/Flixel-Haxe

all:
	${FLXP}/genlib.sh ${FLXP}/org/flixel/data/assets/ library.swf
	haxe -cp ${ASTP} -cp ${FLXP} -swf-lib ${SLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} --no-traces -main ${MAIN}  
	
debug:
	haxe -cp ${ASTP} -cp ${FLXP} -swf-lib ${SLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} -debug -main ${MAIN}

release:
	haxe -cp ${ASTP} -cp ${FLXP} -swf-lib ${SLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} --no-traces -main ${MAIN}  

play:
	haxe -cp ${ASTP} -cp ${FLXP} -swf-lib ${SLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} -debug -main ${MAIN} -cmd "flashplayerdebugger ${SWFO}"
	
assets:
	${FLXP}/genlib.sh ${FLXP}/org/flixel/data/assets/ library.swf

clean:
	rm -rf ${SWFO}
	rm -rf assets
